export const tableOption ={
  labelPosition: "right",
  labelSuffix: "：",
  labelWidth: 120,
  gutter: 0,
  menuBtn: true,
  submitBtn: true,
  align: "center",
  submitText: "提交",
  emptyBtn: true,
  emptyText: "清空",
  menuPosition: "center",
  border: true,
  index: true,
  indexLabel: "序号",
  searchEnter: true,
  column: [
    {
      prop: "materialNo",
      type: "input",
      label: "料号",
      span: 12,
      display: true,
    },
    {
      prop: "materialName",
      type: "input",
      label: "材料名称",
      span: 12,
      display: true,
      required: true,
      rules: [
        {
          required: true,
          message: "材料名称必须填写"
        }
      ]
    },
    {
      prop: "materialType",
      type: "select",
      label: "材料类型",
      span: 12,
      display: true,
      dicData: [
        {
          label: "物料",
          value: "0"
        },
        {
          label: "辅料",
          value: "1"
        }
      ],
      props: {
        label: "label",
        value: "value",
        desc: "desc"
      },
      required: true,
      rules: [
        {
          required: true,
          message: "材料类型必须填写"
        }
      ],
      value:"0"
    },
    {
      prop: "badType",
      type: "textarea",
      label: "不良类型",
      placeholder:"请填写不良类型用英文逗号分割",
      span: 12,
      display: true,
      required: true,
      rules: [
        {
          required: true,
          message: "材料名称必须填写"
        }
      ]
    },

    {
      prop: "createBy",
      span: 12,
      type: "input",
      label: "创建人",
      dicUrl: "/admin/user/getAllUser",
      props: {
        label: "name",
        value: "username"
      },
      dicMethod: "get",
      display: false,
      hide: false
    },
    {
      prop: "createTime",
      span: 12,
      type: "datetime",
      label: "创建时间",
      format: "yyyy-MM-dd HH:mm:ss",
      display: false,
      hide: false,
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    }
  ],
}
